home *** CD-ROM | disk | FTP | other *** search
/ Young & Modern Digital Makeover Magic / Young & Modern Digital Makeover Magic.iso / data1.cab / TempMKV / PrintControls.js < prev    next >
Encoding:
JavaScript  |  1999-10-18  |  7.0 KB  |  143 lines

  1. //PrintControls.js
  2. // Copyright (c) 1999 MGI Software Corp. All Rights Reserved
  3. // <Script>
  4.  
  5. function GetPrintControlsHTML ()
  6. {
  7. var strHTML  = "" ;
  8.  
  9.    /*
  10.     * Printer List (150x24)
  11.     */
  12.     strHTML += "<B>Printer</B><BR>" ;
  13.     strHTML += "<OBJECT ID='MGIComboBoxPrintersName' WIDTH=150 HEIGHT=24" ;
  14.     strHTML += "< CLASSID='CLSID:9E5A3C80-FD5F-11D2-ACB6-0080C877D9B9'>" ;
  15.     strHTML += "<PARAM NAME='WorkflowID' VALUE='file:/Resources/WorkflowsComponent|Common|PrintPreview.wkf'>" ;
  16.     strHTML += "<PARAM NAME='WorkflowStep' VALUE=20>" ;
  17.    //        strHTML += "<PARAM NAME='BackgroundColor' VALUE='<MGITRANS ID=51050 COMMENT='106,172,174'>'>>" ;
  18.     strHTML += "</OBJECT>" ;
  19.  
  20.    /*
  21.     * Properties
  22.     */
  23.     strHTML += "<OBJECT ID='MGIPropertiesButton' WIDTH=100 HEIGHT=41" ;
  24.     strHTML += "<    CLASSID='CLSID:4FA211A0-FD53-11d2-ACB6-0080C877D9B9'>" ;
  25.     strHTML += "<PARAM NAME='DisplayID' VALUE='file:/Resources/WorkflowsComponent|Common|stdgui.wkf'>" ;
  26.     strHTML += "<PARAM NAME='DisplayStep' VALUE=50>" ;
  27.     strHTML += "<PARAM NAME='DisplayIndex' VALUE=80>" ;
  28.     strHTML += "<PARAM NAME='DriverID' VALUE='{4FA211A7-FD53-11d2-ACB6-0080C877D9B9},PrintPreview,3110'>" ;
  29.     strHTML += "<PARAM NAME='NumStates' VALUE=4>" ;
  30.     strHTML += "<PARAM NAME='Label' VALUE='Properties'>" ;
  31.     
  32.     strHTML += "<PARAM NAME='BackgroundMoniker' VALUE='file:/" ;
  33. //    strHTML += top.gstrThemePath + "CPanelBkgrnd.PNG'>" ;
  34.     strHTML += top.gstrThemePath + top.gstrMenuImage + "'>>" ; //"CPanelBkgrnd.PNG'>>" ;
  35.     
  36.            strHTML += "<PARAM NAME='ToolTipString' VALUE='Change printer properties'>" ;
  37.    //        strHTML += "<PARAM NAME='LabelRect' VALUE='<MGITRANS ID=51012 COMMENT='C,0.2,0.2,0.85,0.8'>'>" ;
  38.    //        strHTML += "<PARAM NAME='LabelColor' VALUE='<MGITRANS ID=51000 COMMENT='255,255,255'>'>" ;
  39.     strHTML += "<PARAM NAME='SoundIDHover' VALUE='HoverSmall'>" ;
  40.     strHTML += "<PARAM NAME='SoundIDClick' VALUE='ClickSmall'>" ;
  41.     strHTML += "<PARAM NAME='UseDispatcher' VALUE='1'>>" ;
  42.     strHTML += "</OBJECT>" ;
  43.  
  44.    /*
  45.     * Orientation
  46.     */
  47.     strHTML += "<BR><B>Orientation</B><BR>" ;
  48.     strHTML += "<OBJECT ID=Select2TB WIDTH=100 HEIGHT=35" ;
  49.     strHTML += "<    CLASSID='CLSID:13C9A8C0-FD5B-11D2-ACB6-0080C877D9B9'>" ;
  50.     strHTML += "<PARAM NAME='WorkflowID' VALUE='file:/Resources/WorkflowsComponent|Common|B_PPOrientation.wkf'>" ;
  51.     strHTML += "<PARAM NAME='WorkflowStep' VALUE=1>" ;
  52.  
  53.     strHTML += "<PARAM NAME='BackgroundMoniker' VALUE='file:/" ;
  54. //    strHTML += top.gstrThemePath + "CPanelBkgrnd.PNG'>" ;
  55.     strHTML += top.gstrThemePath + top.gstrMenuImage + "'>>" ; //"CPanelBkgrnd.PNG'>>" ;
  56.  
  57.     strHTML += "<PARAM NAME='CatalogEditorType' VALUE='HToolBar'>>" ;
  58.     strHTML += "</OBJECT>" ;
  59.  
  60.    /*
  61.     * Print Size List
  62.     */
  63.     strHTML += "<BR><BR><B>Print size</B><BR>" ;
  64.     strHTML += "<OBJECT ID='MGIComboBoxPrintSize' WIDTH=145 HEIGHT=24" ;
  65.     strHTML += "<    CLASSID='CLSID:9E5A3C80-FD5F-11D2-ACB6-0080C877D9B9'>" ;
  66.     strHTML += "<PARAM NAME='WorkflowID' VALUE='file:/Resources/WorkflowsComponent|Common|PrintPreview.wkf'>" ;
  67.     strHTML += "<PARAM NAME='WorkflowStep' VALUE=22>" ;
  68.    //        strHTML += "<PARAM NAME='BackgroundColor' VALUE='<MGITRANS ID=51050 COMMENT='106,172,174'>'>>" ;
  69.     strHTML += "</OBJECT><BR>" ;
  70.  
  71.    /*
  72.     * Page size spin boxes
  73.     */
  74.     strHTML += "<OBJECT ID='MGIFloatEdit' WIDTH=53 HEIGHT=24 ALIGN=ABSMIDDLE" ;
  75.     strHTML += "<    CLASSID='CLSID:D46C47C0-FD76-11D2-ACB6-0080C877D9B9'>" ;
  76.     strHTML += "<PARAM NAME='WorkflowID' VALUE='file:/Resources/WorkflowsComponent|Common|PrintPreview.wkf'>" ;
  77.     strHTML += "<PARAM NAME='WorkflowStep' VALUE=32>" ;
  78.     strHTML += "<PARAM NAME='Precision' VALUE=2>>" ;
  79.     strHTML += "</OBJECT>" ;
  80.  
  81.     strHTML += "<OBJECT ID='MGIFloatEdit' WIDTH=53 HEIGHT=24 ALIGN=ABSMIDDLE" ;
  82.     strHTML += "<    CLASSID='CLSID:D46C47C0-FD76-11D2-ACB6-0080C877D9B9'>" ;
  83.     strHTML += "<PARAM NAME='WorkflowID' VALUE='file:/Resources/WorkflowsComponent|Common|PrintPreview.wkf'>" ;
  84.     strHTML += "<PARAM NAME='WorkflowStep' VALUE=33>" ;
  85.     strHTML += "<PARAM NAME='Precision' VALUE=2>>" ;
  86.     strHTML += "</OBJECT>" ;
  87.  
  88.     strHTML += "<OBJECT ID='MGIComboBoxUnits' WIDTH=39 HEIGHT=24 ALIGN=ABSMIDDLE" ;
  89.     strHTML += "<    CLASSID='CLSID:9E5A3C80-FD5F-11D2-ACB6-0080C877D9B9'>" ;
  90.     strHTML += "<PARAM NAME='WorkflowID' VALUE='file:/Resources/WorkflowsComponent|Common|PrintPreview.wkf'>" ;
  91.     strHTML += "<PARAM NAME='WorkflowStep' VALUE=21>" ;
  92.    //        strHTML += "<PARAM NAME='BackgroundColor' VALUE='<MGITRANS ID=51050 COMMENT='106,172,174'>'>>" ;
  93.     strHTML += "</OBJECT><br>" ;
  94.  
  95.    /*
  96.     * Maintain Aspect Ratio check box
  97.     */
  98.     strHTML += "<OBJECT ID='MaintainAspectCheck' WIDTH=13 HEIGHT=13" ;
  99.     strHTML += "<    CLASSID='CLSID:4FA211A0-FD53-11d2-ACB6-0080C877D9B9'>" ;
  100.     strHTML += "<PARAM NAME='DisplayID' VALUE='file:/Resources/WorkflowsComponent|Common|stdgui.wkf'>" ;
  101.     strHTML += "<PARAM NAME='DisplayStep' VALUE=50>" ;
  102.     strHTML += "<PARAM NAME='DisplayIndex' VALUE=33>" ;
  103.     strHTML += "<PARAM NAME='ButtonStyle' VALUE='TOGGLE'>" ;
  104.     strHTML += "<PARAM NAME='StateDriverID' VALUE='file:/Resources/WorkflowsComponent|Common|PrintPreview.wkf'>" ;
  105.     strHTML += "<PARAM NAME='StateDriverStep' VALUE=40>" ;
  106.     strHTML += "<PARAM NAME='NumStates' VALUE=4>" ;
  107.     strHTML += "<PARAM NAME='SoundIDClick' VALUE='ClickChoice'>" ;
  108.     strHTML += "<PARAM NAME='EventID' VALUE='0'>>" ;
  109.     strHTML += "</OBJECT>" ;
  110.     strHTML += "<SPAN OnClick='MaintainAspectCheck.DoClick()' STYLE='cursor:default'>Maintain aspect ratio</SPAN>" ;
  111.     
  112.    /*
  113.     * Copies int edit
  114.     */
  115.     strHTML += "<BR><BR><B>Number of copies</B><BR>" ;
  116.     strHTML += "<OBJECT ID='MGIIntEdit' WIDTH=60 HEIGHT=24" ;
  117.     strHTML += "<    CLASSID='CLSID:9A3E8F60-FD83-11D2-ACB6-0080C877D9B9'>" ;
  118.     strHTML += "<PARAM NAME='WorkflowID' VALUE='file:/Resources/WorkflowsComponent|Common|PrintPreview.wkf'>" ;
  119.     strHTML += "<PARAM NAME='WorkflowStep' VALUE=50>>" ;
  120.     strHTML += "</OBJECT><BR>" ;
  121.  
  122.    /*
  123.     * Print Button
  124.     */
  125.     strHTML += "<BR><BR><TABLE width=100%><TR><TD align=center>" ;
  126.     strHTML += "<OBJECT ID='MGIPrintButton' WIDTH=96 HEIGHT=41" ;
  127.     strHTML += "<    CLASSID='CLSID:4FA211A0-FD53-11d2-ACB6-0080C877D9B9'>" ;
  128.     strHTML += "<PARAM NAME='DisplayID' VALUE='file:/Resources/WorkflowsComponent|Common|stdgui.wkf'>" ;
  129.     strHTML += "<PARAM NAME='DisplayStep' VALUE=50>" ;
  130.     strHTML += "<PARAM NAME='DisplayIndex' VALUE=80>" ;
  131.     strHTML += "<PARAM NAME='DriverID' VALUE='{4FA211A7-FD53-11d2-ACB6-0080C877D9B9},PrintPreview,3109'>" ;
  132.     strHTML += "<PARAM NAME='NumStates' VALUE=4>" ;
  133.     strHTML += "<PARAM NAME='Label' VALUE='Print'>" ;
  134.     strHTML += "<PARAM NAME='SoundIDHover' VALUE='HoverSmall'>" ;
  135.     strHTML += "<PARAM NAME='SoundIDClick' VALUE='ClickSmall'>" ;
  136.     strHTML += "<PARAM NAME='ToolTipString' VALUE='Print makeover'>" ;
  137.     strHTML += "<PARAM NAME='BackgroundMoniker' VALUE='file:/" + top.gstrThemePath + top.gstrMenuImage + "'>>" ;
  138.     strHTML += "</OBJECT>" ;
  139.     strHTML += "</TD></TR></TABLE>" ;
  140.  
  141.     return strHTML ;
  142. }
  143.